﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Proxy;
using SIM.Util;

namespace SIM.Geo.UI.Movil.Controllers
{
    public class MaquinaController : Controller
    {
        //
        // GET: /Maquina/

        public ActionResult Index()
        {
            return View();
        }
           public JsonResult ListItem(int intCodigoEmpresa)
        {
              intCodigoEmpresa = Convert.ToInt32(Request.QueryString["filter[filters][0][value]"]);
                
                   using (SEMaquinaClient proxy = new SEMaquinaClient())
                {
                    var zonas = proxy.ObtenerListItem2(intCodigoEmpresa, enmDiamantino.EsDiamantino.GetHashCode());
                    return Json(zonas, JsonRequestBehavior.AllowGet);
                }
           

        }
           public JsonResult ListItem1()
           {

               using (SEMaquinaClient proxy = new SEMaquinaClient())
               {
                   var zonas = proxy.ObtenerListItem();
                   return Json(zonas, JsonRequestBehavior.AllowGet);
               }


           }
        

    }
}
